package tag34_27_08.aufgabenZoo;

import java.util.ArrayList;
import java.util.Collection;

public class Zoo {
	
	private Collection<Tier> tiere = new ArrayList<Tier>(); 

	public void addTier(Tier t) {
		tiere.add(t);
		// tiere.add(new Date());
	}
	
	public Collection<Tier> getTiere() {
		return tiere;
	}
	
	@Override
	public String toString() {
		
		StringBuilder back = new StringBuilder();
		
		for(Tier t : tiere) {
			back.append(t).append('\n');
		}

		return back.toString();
	}

}
